package cn.com.generaldata.os.importpojo;

import java.util.Date;

import com.sun.xml.internal.bind.CycleRecoverable;

public class ReportVersion implements java.io.Serializable, CycleRecoverable {
	private static final long serialVersionUID = 1L;

	private int id; // 版本ID
	private String versionNumber; // 版本号
	private String versionName; // 版本名称
	private Date createTime; // 创建时间
	private Date startDate;
	private Date endDate;
	private int active; // 是否激活
	private Date lastUpdate; // 最终修改时间

	public int getStatSystem() {
		return statSystem;
	}

	public void setStatSystem(int statSystem) {
		this.statSystem = statSystem;
	}

	public void setId(int id) {
		this.id = id;
	}

	private int statSystem;// 制度版本

	public ReportVersion() {

	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		ReportVersion temp = new ReportVersion();
		temp.setId(id);
		return temp;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}

	public String getVersionName() {
		return versionName;
	}

	public void setVersionName(String versionName) {
		this.versionName = versionName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getActive() {
		return active;
	}

	public void setActive(int active) {
		this.active = active;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public ReportVersion(int id, String versionNumber, String versionName, Date createTime, Date startDate,
			Date endDate, int active, Date lastUpdate, int statSystem) {
		super();
		this.id = id;
		this.versionNumber = versionNumber;
		this.versionName = versionName;
		this.createTime = createTime;
		this.startDate = startDate;
		this.endDate = endDate;
		this.active = active;
		this.lastUpdate = lastUpdate;
		this.statSystem = statSystem;
	}

}
